package com.songaw.cangku.pojo.entity;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

public class ClothesTable implements Serializable {
    private String uuid;
    @JSONField(format="yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "交货日期")
    private Date submitDate;
    @JSONField(format="yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "领货日期")
    private Date claimedDate;

    @ApiModelProperty(value = "款号")
    private String modelNumber;
    @ApiModelProperty(value = "颜色")
    private String color;


    @ApiModelProperty(value = "尺码")
    private String size;
    @ApiModelProperty(value = "数量")
    private Integer number;
    @ApiModelProperty(value = " 完工状态 1 已领 2 已交 3 未交完")
    private Integer status;
    @ApiModelProperty(value = "工价")
    private Double price;
    @ApiModelProperty(value = "已领")
    private Integer claimed;
    @ApiModelProperty(value = "未领")
    private Integer unclaimed;
    @ApiModelProperty(value = "已交")
    private Integer submit;
    @ApiModelProperty(value = "未交")
    private Integer unsubmit;
    @ApiModelProperty(value = "工号")
    private String workerNum;
    @ApiModelProperty(value = "最后修改人")
    private String updateUser;
    @ApiModelProperty(value = "修改日期")
    private Long updateTime;
    @ApiModelProperty(value = "创建人")
    private String insertUser;
    @ApiModelProperty(value = "创建日期")
    private Long insertTime;
    @ApiModelProperty(value = "删除标识")
    private String deleteFlag;

    private static final long serialVersionUID = 1L;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid == null ? null : uuid.trim();
    }

    public Date getSubmitDate() {
        return submitDate;
    }

    public void setSubmitDate(Date submitDate) {
        this.submitDate = submitDate;
    }

    public Date getClaimedDate() {
        return claimedDate;
    }

    public void setClaimedDate(Date claimedDate) {
        this.claimedDate = claimedDate;
    }

    public String getModelNumber() {
        return modelNumber;
    }

    public void setModelNumber(String modelNumber) {
        this.modelNumber = modelNumber == null ? null : modelNumber.trim();
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color == null ? null : color.trim();
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size == null ? null : size.trim();
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getClaimed() {
        return claimed;
    }

    public void setClaimed(Integer claimed) {
        this.claimed = claimed;
    }

    public Integer getUnclaimed() {
        return unclaimed;
    }

    public void setUnclaimed(Integer unclaimed) {
        this.unclaimed = unclaimed;
    }

    public Integer getSubmit() {
        return submit;
    }

    public void setSubmit(Integer submit) {
        this.submit = submit;
    }

    public String getWorkerNum() {
        return workerNum;
    }

    public void setWorkerNum(String workerNum) {
        this.workerNum = workerNum == null ? null : workerNum.trim();
    }

    public Integer getUnsubmit() {
        return unsubmit;
    }

    public void setUnsubmit(Integer unsubmit) {
        this.unsubmit = unsubmit;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser == null ? null : updateUser.trim();
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public String getInsertUser() {
        return insertUser;
    }

    public void setInsertUser(String insertUser) {
        this.insertUser = insertUser == null ? null : insertUser.trim();
    }

    public Long getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(Long insertTime) {
        this.insertTime = insertTime;
    }

    public String getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ClothesTable other = (ClothesTable) that;
        return (this.getUuid() == null ? other.getUuid() == null : this.getUuid().equals(other.getUuid()))
            && (this.getSubmitDate() == null ? other.getSubmitDate() == null : this.getSubmitDate().equals(other.getSubmitDate()))
            && (this.getClaimedDate() == null ? other.getClaimedDate() == null : this.getClaimedDate().equals(other.getClaimedDate()))
            && (this.getModelNumber() == null ? other.getModelNumber() == null : this.getModelNumber().equals(other.getModelNumber()))
            && (this.getColor() == null ? other.getColor() == null : this.getColor().equals(other.getColor()))
            && (this.getSize() == null ? other.getSize() == null : this.getSize().equals(other.getSize()))
            && (this.getNumber() == null ? other.getNumber() == null : this.getNumber().equals(other.getNumber()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
            && (this.getClaimed() == null ? other.getClaimed() == null : this.getClaimed().equals(other.getClaimed()))
            && (this.getUnclaimed() == null ? other.getUnclaimed() == null : this.getUnclaimed().equals(other.getUnclaimed()))
            && (this.getSubmit() == null ? other.getSubmit() == null : this.getSubmit().equals(other.getSubmit()))
            && (this.getWorkerNum() == null ? other.getWorkerNum() == null : this.getWorkerNum().equals(other.getWorkerNum()))
            && (this.getUnsubmit() == null ? other.getUnsubmit() == null : this.getUnsubmit().equals(other.getUnsubmit()))
            && (this.getUpdateUser() == null ? other.getUpdateUser() == null : this.getUpdateUser().equals(other.getUpdateUser()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getInsertUser() == null ? other.getInsertUser() == null : this.getInsertUser().equals(other.getInsertUser()))
            && (this.getInsertTime() == null ? other.getInsertTime() == null : this.getInsertTime().equals(other.getInsertTime()))
            && (this.getDeleteFlag() == null ? other.getDeleteFlag() == null : this.getDeleteFlag().equals(other.getDeleteFlag()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUuid() == null) ? 0 : getUuid().hashCode());
        result = prime * result + ((getSubmitDate() == null) ? 0 : getSubmitDate().hashCode());
        result = prime * result + ((getClaimedDate() == null) ? 0 : getClaimedDate().hashCode());
        result = prime * result + ((getModelNumber() == null) ? 0 : getModelNumber().hashCode());
        result = prime * result + ((getColor() == null) ? 0 : getColor().hashCode());
        result = prime * result + ((getSize() == null) ? 0 : getSize().hashCode());
        result = prime * result + ((getNumber() == null) ? 0 : getNumber().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        result = prime * result + ((getClaimed() == null) ? 0 : getClaimed().hashCode());
        result = prime * result + ((getUnclaimed() == null) ? 0 : getUnclaimed().hashCode());
        result = prime * result + ((getSubmit() == null) ? 0 : getSubmit().hashCode());
        result = prime * result + ((getWorkerNum() == null) ? 0 : getWorkerNum().hashCode());
        result = prime * result + ((getUnsubmit() == null) ? 0 : getUnsubmit().hashCode());
        result = prime * result + ((getUpdateUser() == null) ? 0 : getUpdateUser().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getInsertUser() == null) ? 0 : getInsertUser().hashCode());
        result = prime * result + ((getInsertTime() == null) ? 0 : getInsertTime().hashCode());
        result = prime * result + ((getDeleteFlag() == null) ? 0 : getDeleteFlag().hashCode());
        return result;
    }
}